<template>
  <div class="articleAll-box">
    <article-item v-for="a in articles" :key="a.articleId" v-bind="a"/>
  </div>
</template>

<script>
import {getArticleAllInfoByUser} from "@/request/api/article";
import ArticleItem from "@/components/article/ArticleItem";
export default {
  name: "ArticleListPage",
  components: {ArticleItem},
  data() {
    const articles = []
    return {
      articles
    }
  },
  created() {
    // 获取文章的信息
    getArticleAllInfoByUser().then(res => {
      this.articles = res.data
    })
  },
}
</script>

<style lang="scss" scoped>

.articleAll-box {
  width: 1000px;
  margin: 20px auto;
}

</style>